<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function printWindow(){
	browserVersion = parseInt(navigator.appVersion)
	if (browserVersion >= 4) window.print()
}
//-->
</script>

<script language="javascript">
<!--
function changePage(page)
{
		document.forms['form1'].method = 'post';
		document.forms['form1'].action = "SMSSchedule";
        document.forms['form1'].page.value = page;
		document.forms['form1'].target = "_self";
        document.forms['form1'].submit();
}

function doOpenSms(sms)
{
    var form = document.forms[0];
    window.open("", "messagepop", "height=300, width=500, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no");
    form.action = "../SMSMessagePop";
    form.sms.value = sms;
    form.target = "messagepop";
    form.submit();
}

//function doDelete()
//{
//    var form = document.forms[0];
//    var chk = false;
//    for (var i = 0; i < form.transid.length; i++)
//    {
//        if (form.transid[i].checked) // check only
//        {
//            var aaa = form.transid[i].value.split(".");
//            chkAlertTime(aaa[2]);
//
//            if ("true" == aaa[2])
//            {
//                chk = true;
//                return;
//            }
//        }
//    }
//
//    if (!chk)
//    {
//        form.action = "SMSSchedule?action=delete";
//        form.submit();
//    }
//}
//
//function chkAlertTime(val)
//{
//    if ("true" == val)
//    {
//        alert("");
//    }
//}

// NOM =======================
var currentTimeFromServer = "";
setTimeout("local_date2('2011/02/22 11:43:43')", 1000);

function doDelete()
{
    var form = document.forms[0];
    form.target = "_self";
    var chk = false;
    var delChk = false;
    if (typeof(form.transid.length) != 'undefined') // isArray
    {
        for (var i = 0; i < form.transid.length; i++)
        {
            if (form.transid[i].checked) // check only
            {
                var aaa = form.transid[i].value.split("|");

                if (chkAfterNowLessThan_1_hour(aaa[2]))
                {
                    chk = true;
                    return;
                }

                delChk = true;
            }
        }
    }
    else // !isArray
    {
        if (form.transid.checked) // check only
        {
            var aaa = form.transid.value.split("|");

            if (chkAfterNowLessThan_1_hour(aaa[2]))
            {
                chk = true;
                return;
            }

            delChk = true;
        }
    }

    if (!delChk) // not checked
    {
        alert('Please select message for delete.');
        return;
    }

    if (!chk)
    {
        form.action = "SMSSchedule?action=delete";
        form.submit();
    }
}
function local_date2(now_time)
{
    current_time1 = new Date(now_time);
    current_time2 = current_time1.getTime() + 1000;
    current_local_time = new Date(current_time2);
    setTimeout("local_date2(current_local_time.getTime())",1000);
    currentTimeFromServer = current_local_time.getTime();
}

function chkAfterNowLessThan_1_hour(val_time)
{
    var form = document.forms[0];
    var setTime = new Date(val_time);

    if ((setTime - currentTimeFromServer) <= 3600000)
    {
        alert("");
        return true;
    }
    return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}
//-->
</script>
</head>

<body> 
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway"><a href="#" class="link2">Happy Web Services</a> > <a href="#" class="link2">Terms and conditions of SMS service</a></div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->  
                <form name="form1" method="post">
<input type="hidden" name="page">
<input type="hidden" name="sms">
<table border="0" cellspacing="0" cellpadding="0">

  <tr> 
    <td height="30" valign="top"><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></td>
  </tr>
  <tr> 
    <td height="40" class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
        <tr> 
          <td class="textnormal">Hello! <span class="textnormal_blue"><strong>วิทยา อภิมหาบุณย์</strong></span> Welcome to Happy Web Services!</td>

          <td align="right"> <table height="30" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <!--<td align="center" valign="middle"><a href="/bp3/bin/Dspc/DpromptWelcome?changeLang=T"><img src="${RESOURCE}/eng/images/en_flag.gif" width="30" height="16" border="0"></a></td>
              <td width="10" align="center"><img src="${RESOURCE}/eng/images/14_webservice_breaker.gif" width="3" height="27"></td>-->
              <td align="center"><a href="/bp3/bin/DpromptIndex"><img src="${RESOURCE}/eng/images/14_webservice_logoff.gif" width="108" height="29" border="0"></a></td>
            </tr>
          </table>            </td>
        </tr>
      </table></td>

  </tr>
  <tr> 
    <td height="1" bgcolor="#B4B4B4"></td>
  </tr>
  <tr> 
    <td class="textnormal"><table width="100%" border="0" cellspacing="2" cellpadding="5">
        <tr> 
          <td align="right" valign="top" class="textnormalred">This is the 46th time you've visited Happy.<br>
          The last time you logged in was on: 15/02/2011 at  10:36:53 <br>

          <span class="textnormal"><img src="${RESOURCE}/eng/images/bullet_yellow.gif" width="8" height="8"> <a href="/bp3/bin/Dspc/DpromptChangeUserInfoForm" class="textnormal_blue">Click to modify your personal information</a></span></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>
	<table width="100%" border="0" cellspacing="3" cellpadding="0">
      <tr>

        <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
        <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle17n.gif" width="350" height="22"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="40" valign="bottom" class="textnormal"><table width="100%" border="0" cellspacing="3" cellpadding="0">
            <tr>
              <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
              <td width="98%">Send <span class="textnormalred_bold">50</span> SMS for free to dtac numbers. Messages sent over this monthly quota will be charged <span class="textnormalred_bold">2</span> baht per message.</td>

            </tr>
            <tr>
              <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
              <td class="textnormal">Messages sent non-dtac numbers will be charged 2 baht per message.</td>
            </tr>
        </table></td>
      </tr>
      <tr>

        <td>&nbsp;</td>
        <td height="50" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="17%"><span class="textnormal_bold">For this month: </span></td>
              <td width="83%" class="textnormal">You have already sent free <span class="textnormalred_bold">
                0
              </span> message(s)</td>

            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="textnormal">You can send <span class="textnormalred_bold">
                50
              </span> more message(s)</td>
            </tr>
        </table></td>

      </tr>
    </table></td>
  </tr>
  <tr> 
    <td height="15" align="left" class="textnormal"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        <tr> 
          <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>
              <td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
              <td width="1"><a href="/bp3/bin/Dspc/DpromptSMSForm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg01','','${RESOURCE}/eng/images/14_webservice_msgtab01_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab01.gif" name="msg01" width="140" height="43" border="0"></a></td>
              <td width="1"><a href="/bp3/bin/Dspc/SMSPhoneBookList" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg02','','${RESOURCE}/eng/images/14_webservice_msgtab02_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab02.gif" name="msg02" width="140" height="43" border="0"></a></td>
              <td width="1"><a href="/bp3/bin/Dspc/SMSSchedule" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg03','','${RESOURCE}/eng/images/14_webservice_msgtab03_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab03_i.gif" name="msg03" width="140" height="43" border="0"></a></td>
              <td width="1"><a href="/bp3/bin/Dspc/SMSDrReport" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg04','','${RESOURCE}/eng/images/14_webservice_msgtab04_i.gif',1)"><img src="${RESOURCE}/eng/images/14_webservice_msgtab04.gif" name="msg04" width="140" height="43" border="0"></a></td>
              <td background="${RESOURCE}/eng/images/14_webservice_tabline.gif">&nbsp;</td>
            </tr>
          </table></td>

        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="center" class="head"><br>
            <table width="90%" border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td colspan="4" align="left"><span class="textnormal_bold">List of your scheduled SMS : </span><span class="textnormalred_bold">Data does not exist.</span></td>

              </tr>
              <tr>
                <td colspan="4" class="head"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="1"><img src="${RESOURCE}/eng/images/14_table_01.gif" width="10" height="10" /></td>
                      <td background="${RESOURCE}/eng/images/14_table_05.gif"><img src="${RESOURCE}/eng/images/14_table_05.gif" width="10" height="10" /></td>
                      <td width="1"><img src="${RESOURCE}/eng/images/14_table_02.gif" width="10" height="10" /></td>
                    </tr>
                    <tr>

                      <td background="${RESOURCE}/eng/images/14_table_06.gif"><img src="${RESOURCE}/eng/images/14_table_06.gif" width="10" height="10" /></td>
                      <td align="center" valign="top">
                      <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
                          <tr>
                            <td width="5%" align="center" valign="middle" bgcolor="#0ABBE0" style="border-left:solid 1px white">&nbsp;</td>
                            <td width="10%" height="30" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">No.</td>
                            <td width="20%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">Date of entry</td>
                            <td width="20%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">Send date</td>

                            <td width="10%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">Message</td>
                            <td width="15%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">Recipient No.</td>
                            <td width="10%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">No. of message</td>
                            <td width="10%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold" style="border-left:solid 1px white">Fee</td>
                          </tr>
                      
                      <tr bgcolor="" class="textnormal">
                        <td width="5%" valign="top" align="center"></td>

                        <td width="10%" valign="top" class="textnormal" align="center"></td>
                        <td align="center" valign="top" class="textnormal" align="center"> </td>
                        <td align="center" valign="top" class="textnormal" align="center"> </td>
                        <td width="10%" align="center" valign="top" class="textnormal" align="center"></td>
                        <td width="15%" align="center" valign="middle" class="textnormal" align="center"></td>
                        <td width="10%" align="center" valign="top" class="textnormal" align="center"></td>
                        <td width="10%" align="center" valign="top" class="textnormal" align="center"></td>
                      </tr>

                      
                          <tr align="left">
                            <td colspan="9"><img src="${RESOURCE}/eng/images/14_webservice_delete_01.gif" width="58" height="23" border="0" style="cursor:hand" onclick="doDelete()"></td>
                          </tr>
                      </table></td>
                      <td background="${RESOURCE}/eng/images/14_table_07.gif"><img src="${RESOURCE}/eng/images/14_table_07.gif" width="10" height="10" /></td>
                    </tr>
                    <tr>
                      <td><img src="${RESOURCE}/eng/images/14_table_03.gif" width="10" height="10" /></td>
                      <td background="${RESOURCE}/eng/images/14_table_08.gif"><img src="${RESOURCE}/eng/images/14_table_08.gif" width="10" height="10" /></td>

                      <td><img src="${RESOURCE}/eng/images/14_table_04.gif" width="10" height="10" /></td>
                    </tr>
                  </table>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center" class="textnormal">
                        
                        </td>
                      </tr>
                    </table>

                  <br>
                    <table width="100%" border="0" cellspacing="3" cellpadding="0">
                      <tr>
                        <td width="2%" align="left"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                        <td width="98%" align="left" class="textnormal">Scheduled message(s) can be cancelled at least 1 hours in advance</td>
                      </tr>
                      <tr>
                        <td align="left" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>

                        <td align="left" class="textnormal">The deducted quota for all scheduled message(s) are final and will not be returned in the event that the user cancels the scheduled SMS message.</td>
                      </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <span class="head"><br>

      <img src="${RESOURCE}/eng/images/14_webservice_remark.gif" width="95" height="33"></span>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="3">
        <tr>
          <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
          <td width="98%" align="left" class="textnormal">Message(s) submitted  from this system is considered final and complete. </td>
        </tr>
        <tr>
          <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>

          <td align="left" class="textnormal">Service fee &amp;  quota details</td>
        </tr>
        <tr>
          <td valign="baseline">&nbsp;</td>
          <td align="left" class="textnormal"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">
              <tr>
                <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>

                <td width="98%" align="left" class="textnormal">For sending to dtac number,  the system will deduct from the monthly quota   based  on the submitted message. The deduction is final and will not be returned   in the event that the user cancels the  scheduled SMS message.</td>
              </tr>
              <tr>
                <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                <td align="left" class="textnormal">For sending to non-dtac number  or sending messages over the quota, the   system  will charge the user's account immediately upon sending.</td>
              </tr>
          </table></td>
        </tr>

        <tr>
          <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
          <td align="left" class="textnormal">This service is intended for personal use only and may not be used for commercial purposes. Legal action will be taken should the company discover any individual violating this condition. </td>
        </tr>
        <tr>
          <td height="10" colspan="2" valign="baseline"><img src="${RESOURCE}/eng/images/clear.gif" width="1" height="1"></td>
        </tr>
        <tr>

          <td colspan="2" valign="baseline"><a href="/bp3/bin/GuestTermOfService" class="textnormal_blue">Terms and Conditions of Happy Web Services</a><span class="textnormalred">|</span><a href="#" class="textnormalred" onClick="MM_openBrWindow('http://www.happy.co.th/eservice/sms_rules_en.php','PopUp','')">Terms of Use Web Services</a></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
  <tr> 
    <td height="15" align="left"><a href="/bp3/bin/Dspc/DpromptWelcome"><img src="${RESOURCE}/eng/images/14_webservice_main.gif" border="0"></a></td>
  </tr>

  <tr> 
    <td height="15" align="center"><br></td>
  </tr>

</table>
</form>
                      
              <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>

